Skip to content

Add Python 3.15 urllib.parse updates#15726

Open
JelleZijlstra wants to merge 6 commits intopython:mainfrom
JelleZijlstra:codex/python315-urllib
Open

Add Python 3.15 urllib.parse updates#15726
JelleZijlstra wants to merge 6 commits intopython:mainfrom
JelleZijlstra:codex/python315-urllib

Conversation

@JelleZijlstra
Copy link
Copy Markdown
Member

@JelleZijlstra JelleZijlstra commented May 8, 2026

Summary

  • Add Python 3.15 urllib.parse result geturl methods.
  • Model missing_as_none result objects with optional missing components.
  • Add keep_empty keyword support for urlunparse and urlunsplit.
  • Remove corresponding 3.15 stubtest allowlist entries.

Relevant report entries

@github-actions

This comment has been minimized.

@JelleZijlstra
Copy link
Copy Markdown
Member Author

This feels messy but I haven't looked too closely. Maybe we need generics? I'm going to focus on the rest of the stdlib first, but if anyone has strong opinions feel free to take a look.

@github-actions

This comment has been minimized.

@JelleZijlstra
Copy link
Copy Markdown
Member Author

OK now I'm happier with this.

@JelleZijlstra JelleZijlstra marked this pull request as ready for review May 9, 2026 17:51
@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/computation/ops.py:328: error: Need type annotation for "_binary_ops_dict" (hint: "_binary_ops_dict: dict[<type>, <type>] = ...")  [var-annotated]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant